//
//  PMenuCell.swift
//  CJPack
//
//  Created by 陈警卫 on 2023-06-01.
//

import UIKit
import Foundation

class PMenuCell: UITableViewCell {
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        setupView()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    var titleL: UILabel!
    
    func setupView() {
        
        titleL = UILabel()
        titleL.textColor = .cj_colorRandom
        contentView.addSubview(titleL)
        titleL.snp.makeConstraints { make in
            make.center.equalTo(self)
        }
        
    }
    
}

class PMenuContentCell: UITableViewCell {
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        setupView()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    let vc = PContentController()
    
    func setupView() {
        vc.view.frame = self.bounds
        self.contentView.addSubview(vc.view)
    }
    
}
